package com.example.demo.service.web;


import com.example.demo.entity.Label;
import com.example.demo.mapper.LabelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ArticleService class
 */
@Service
public class LabelWebService {

    @Autowired
    private LabelMapper labelMapper;

    /**
     * 查询所有标签
     *
     * @return List<Label>
     */
    public List<Label> selectLabel() {
        return labelMapper.selectAll();
    }

}
